<%-- 
    Document   : programarCitas
    Created on : 2/06/2009, 07:19:38 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
<table  width="100%" border="0" cellpadding="1" cellspacing="1">
  <tr>
      <td height="25" align="left" class="texto3">
        <h:outputLabel value="Programación de Citas" styleClass="texto3" /></td>
  </tr>
  <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
    <tr><td>
  <fieldset>
      <legend>Registrar Cita</legend>
      <table width="100%" border="0">
      <tr>
    <td width="208" height="27"></td>
    <td width="137"><h:outputLabel value="Fecha :" styleClass="texto22" /></td>
    <td align="left" colspan="3">
        <r:calendar value="#{citaController.cita.citFecha}" datePattern="dd/MM/yyyy" cellWidth="15"
                    inputClass="cajaCentrada" styleClass="cajaCentrada"/></td>
  </tr>
  <tr>
    <td height="29"></td>
    <td><h:outputLabel value="Hora :" styleClass="texto22"/></td>
    <td align="left" colspan="3">
        <h:selectOneMenu value="#{citaController.cita.cithoraInicio}" styleClass="fondo012">
                <f:selectItem itemLabel="--Hora--" />
                <f:selectItem itemValue="10:00" itemLabel="10:00am"/>
                <f:selectItem itemValue="11:00" itemLabel="11:00am"/>
                <f:selectItem itemValue="12:00" itemLabel="12:00m"/>
                <f:selectItem itemLabel="------"/>
                <f:selectItem itemValue="17:00" itemLabel="05:00pm"/>
                <f:selectItem itemValue="18:00" itemLabel="06:00pm"/>
                <f:selectItem itemValue="19:00" itemLabel="07:00pm"/>
            </h:selectOneMenu></td>
      </tr>    
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td height="52" colspan="2" align="center">
      <h:commandButton action="#{citaController.grabar}" value="Registrar" styleClass="enlace9"/>
	  <h:outputLabel value=" " />
      <h:commandButton action="#{citaController.cancelar}" value="Cancelar" styleClass="enlace9"/></td>
    <td width="259">&nbsp;</td>
  </tr>
    
          </table>
      </fieldset>
   </td></tr> 
</table>
</h:form>
</f:view>